/**
 * 
 */
package com.zjzywl.smoke.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * @author Administrator
 *
 */
@Entity
public class Device implements Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private int id;
	private String devCode; // 设备编号
	@ManyToOne
	@JoinColumn(name = "deviceTypeID")
	private DeviceType deviceType; // 设备类型
	private Integer usestatus; // 使用状态(1：正常使用 0：停用)
	private String deviceName; // 设备名称
	/* 安装信息 */
	private String address; // 安装地址
	private String longitude; // 经度 （地图）
	private String latitude; // 纬度（地图）
	private Integer x; // 图片位置(保留)
	private Integer y; // 图片位置(保留) 
	@Temporal(TemporalType.DATE)
	private Date installationDate; // 安装日期
	@Temporal(TemporalType.DATE)
	private Date deadline; // 截止日期
	private String linkMain1; // 联系人1
	private String linkPhone1; // 联系人电话
	private String linkMain2; // 联系人2
	private String linkPhone2; // 联系人电话
	private String linkMain3; // 联系人3
	private String linkPhone3; // 联系人电话
	private String linkMain4; // 联系人4
	private String linkPhone4; // 联系人电话
	/* 设备生产信息 */
	private String manufacturer; // 生产厂家
	@Temporal(TemporalType.DATE)
	private Date productionDate; // 生产日期
	private String batch; // 批次
	@Temporal(TemporalType.DATE)
	private Date maintenanceDate; // 保养日期
	private String cameraUrl; // 视频预览地址
	private String cameraUser; // 用户名
	private String cameraPassowrd; // 密码
	private int fireCount;//火警次数
	private String fixedPlace;//安装场所
	private String Remove;//删除设备
	public String getRemove() {
		return Remove;
	}

	public void setRemove(String remove) {
		Remove = remove;
	}

	public String getFixedPlace() {
		return fixedPlace;
	}

	public void setFixedPlace(String fixedPlace) {
		this.fixedPlace = fixedPlace;
	}

	public int getFireCount() {
		return fireCount;
	}

	public void setFireCount(int fireCount) {
		this.fireCount = fireCount;
	}

	private String remark;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public DeviceType getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(DeviceType deviceType) {
		this.deviceType = deviceType;
	}

	public String getDeviceName() {
		return deviceName;
	}

	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}

	public String getManufacturer() {
		return manufacturer;
	}

	public void setManufacturer(String manufacturer) {
		this.manufacturer = manufacturer;
	}

	public Date getProductionDate() {
		return productionDate;
	}

	public void setProductionDate(Date productionDate) {
		this.productionDate = productionDate;
	}

	public String getBatch() {
		return batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public Date getMaintenanceDate() {
		return maintenanceDate;
	}

	public void setMaintenanceDate(Date maintenanceDate) {
		this.maintenanceDate = maintenanceDate;
	}

	public Date getInstallationDate() {
		return installationDate;
	}

	public void setInstallationDate(Date installationDate) {
		this.installationDate = installationDate;
	}

	public Date getDeadline() {
		return deadline;
	}

	public void setDeadline(Date deadline) {
		this.deadline = deadline;
	}

	public String getLinkMain1() {
		return linkMain1;
	}

	public void setLinkMain1(String linkMain1) {
		this.linkMain1 = linkMain1;
	}

	public String getLinkPhone1() {
		return linkPhone1;
	}

	public void setLinkPhone1(String linkPhone1) {
		this.linkPhone1 = linkPhone1;
	}

	public String getLinkMain2() {
		return linkMain2;
	}

	public void setLinkMain2(String linkMain2) {
		this.linkMain2 = linkMain2;
	}

	public String getLinkPhone2() {
		return linkPhone2;
	}

	public void setLinkPhone2(String linkPhone2) {
		this.linkPhone2 = linkPhone2;
	}

	public String getLinkMain3() {
		return linkMain3;
	}

	public void setLinkMain3(String linkMain3) {
		this.linkMain3 = linkMain3;
	}

	public String getLinkPhone3() {
		return linkPhone3;
	}

	public void setLinkPhone3(String linkPhone3) {
		this.linkPhone3 = linkPhone3;
	}

	public String getLinkMain4() {
		return linkMain4;
	}

	public void setLinkMain4(String linkMain4) {
		this.linkMain4 = linkMain4;
	}

	public String getLinkPhone4() {
		return linkPhone4;
	}

	public void setLinkPhone4(String linkPhone4) {
		this.linkPhone4 = linkPhone4;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Integer getUsestatus() {
		return usestatus;
	}

	public void setUsestatus(Integer usestatus) {
		this.usestatus = usestatus;
	}

	public Integer getX() {
		return x;
	}

	public void setX(Integer x) {
		this.x = x;
	}

	public Integer getY() {
		return y;
	}

	public void setY(Integer y) {
		this.y = y;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getDevCode() {
		return devCode;
	}

	public void setDevCode(String devCode) {
		this.devCode = devCode;
	}

	public String getCameraUrl() {
		return cameraUrl;
	}

	public void setCameraUrl(String cameraUrl) {
		this.cameraUrl = cameraUrl;
	}

	public String getCameraUser() {
		return cameraUser;
	}

	public void setCameraUser(String cameraUser) {
		this.cameraUser = cameraUser;
	}

	public String getCameraPassowrd() {
		return cameraPassowrd;
	}

	public void setCameraPassowrd(String cameraPassowrd) {
		this.cameraPassowrd = cameraPassowrd;
	}

}
